package com.qzsoft.zhjd.monitoring.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @ClassName ZLMMediaConfig
 * @Description ZLM 媒体服务配置
 * @author linhuawei
 * @since 2022-03-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
@Component
public class ZLMMediaConfig {

    @Value("${media.ip}")
    private String ip;

    @Value("${media.wanIp}")
    private String wanIp;

    @Value("${media.hookIp}")
    private String hookIp;

    @Value("${media.httpPort}")
    private String httpPort;

    @Value("${media.httpSSlPort}")
    private String httpSSlPort;

    @Value("${media.rtmpPort}")
    private String rtmpPort;

    @Value("${media.rtmpSSlPort}")
    private String rtmpSSlPort;

    @Value("${media.rtpProxyPort}")
    private String rtpProxyPort;

    @Value("${media.rtspPort}")
    private String rtspPort;

    @Value("${media.rtspSSLPort}")
    private String rtspSSLPort;

    @Value("${media.autoConfig}")
    private boolean autoConfig;

    @Value("${media.secret}")
    private String secret;

    @Value("${media.streamNoneReaderDelayMS}")
    private String streamNoneReaderDelayMS;

    @Value("${media.rtp.enable}")
    private boolean rtpEnable;

    @Value("${media.rtp.portRange}")
    private String rtpPortRange;

}
